#!/bin/bash

wget https://gosspublic.alicdn.com/ossutil/1.7.1/ossutil64
chmod +x ossutil64
mv ossutil64 /usr/local/bin/ossutil
tee ~/.ossutilconfig <<-'EOF'
[Credentials]
  language=CH
  #endpoint=oss-cn-shenzhen.aliyuncs.com
  #endpoint=oss-cn-qingdao.aliyuncs.com
  #endpoint=oss-cn-huhehaote.aliyuncs.com
  #endpoint=oss-cn-beijing.aliyuncs.com
  #endpoint=oss-us-west-1-internal.aliyuncs.com
  #endpoint=oss-cn-zhangjiakou-internal.aliyuncs.com
  accessKeyId=
  accessKeySecret=
EOF